Date: May 26, 2021

Introduction

Use R built-in dataset mtcars to plot relevant information regarding fuel consumption (mpg) based on motor engine horsepower (hp) and number of cylinders (cyl), using plotly package.

Plot Fuel Consumption (mpg) vs Horsepower vs Number of Cylinders

## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout

Car MPG vs HP | Cylinders